package com.bizcloud.function;

import java.util.Map;

public class HelloFunction {

    public Object handle(Object param) {
        System.out.println("--->Input: " + param);

        // add your code here if necessary

        return "Hello from iPaaS Function!";
    }

    public Object handle(Object param, Map<String, String> variables) {
        System.out.println("--->Input: " + param + ", variable: " + variables);

        // add your code here if necessary

        return "Hello from iPaaS Function!";
    }

    public static void main(String[] args) {
        HelloFunction h = new HelloFunction();
        Object handle = String.valueOf(h.handle("{\n" +
                "  \"name\" : \"test\"\n" +
                "}"));
        System.out.println(handle);
    }
}
